<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
  <base href="<%=basePath%>">
  <meta charset="UTF-8">
  <title>首页</title>
</head>
<body>
<h1>所有的异常处理演示示例</h1>
<h3><a href="daodb">处理dao中数据库异常</a></h3>
<h3><a href="daomy">处理dao中自定义异常</a></h3>
<h3><a href="daono">处理dao未知错误</a></h3>
<hr>
<h3><a href="servicedb">处理service中数据库异常</a></h3>
<h3><a href="servicemy">处理service中自定义异常</a></h3>
<h3><a href="serviceno">处理service未知错误</a></h3>
<hr>
<h3><a href="db">处理controller中数据库异常</a></h3>
<h3><a href="my">处理controller中自定义异常</a></h3>
<h3><a href="no">处理controller未知错误</a></h3>
<hr>
<!-- web.xml中配置404 -->
<h3><a href="404">404错误</a></h3>
</body>
</html>